//
//  LWXProductsDetailCell.m
//  EPA
//
//  Created by lanou3g on 16/4/22.
//  Copyright © 2016年 Liuwx. All rights reserved.
//

#import "LWXProductsDetailCell.h"

@interface LWXProductsDetailCell()
@property (weak, nonatomic) IBOutlet UIImageView *titleImageVIew;
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;
@property (weak, nonatomic) IBOutlet UIImageView *userNameImageView;
@property (weak, nonatomic) IBOutlet UILabel *userNameLabel;


@end

@implementation LWXProductsDetailCell

- (void)layoutSubviews {
    
    [self.titleImageVIew sd_setImageWithURL:[NSURL URLWithString:self.model.pic]];
    self.titleLabel.text = self.model.title;
    [self.userNameImageView sd_setImageWithURL:[NSURL URLWithString:self.model.icon]];
    self.userNameImageView.layer.cornerRadius = self.userNameImageView.frame.size.width / 2;
    self.userNameImageView.layer.masksToBounds = YES;
    
    self.userNameLabel.text = self.model.uname;
    
}


- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
